﻿@model Propro.Models.Project

@{
    ViewBag.Title = (Model.Name);
}

@section scripts{
    @Styles.Render("~/Content/themes/base/css")
    @Scripts.Render("~/Scripts/pro.js")
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
        });
    </script>
}


<fieldset>
    <legend>Project</legend>

    <div class="display-field">
        <span class="h2">@Html.DisplayFor(model => model.Name)</span>
    </div>
    <br />
    <div class="display-field">
        @Html.DisplayFor(model => model.Description)
    </div>
    <br />
    <div class="display-label">
        @Html.DisplayNameFor(model => model.CreationDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CreationDate)
    </div>
</fieldset>
<br />
<div id="tabs">
    <ul>
        <li><a href="#tabs-1" data-tab-div="#tabs-1" data-tab-get="@Url.Action("getUpdates", new { id = Model.ProjectId })">Updates</a></li>
        <li><a href="#tabs-2" data-tab-div="#tabs-2" data-tab-get="@Url.Action("getDownloads", new { id = Model.ProjectId })">Downloads</a></li>
        <li><a href="#tabs-3" data-tab-div="#tabs-3" data-tab-get="@Url.Action("getMembers", new { id = Model.ProjectId })">Members</a></li>
    </ul>
    <div id="tabs-1">
     
    </div>
    <div id="tabs-2">
         
    </div>
    <div id="tabs-3">
        
    </div>
</div>
<p>
    @if (User.IsInRole("Project" + Model.ProjectId))
    {
        @Html.ActionLink("Edit", "Edit", new { id = Model.ProjectId });
    }
    @Html.ActionLink("Back to List", "List")
</p>
